import _00GraphFuc as gf
import _00GraphTreeFuc as gt

#对任意G的连通子图，构造一棵树
m,n=20,20
[V,E]=gf.creategraph(m,n)
[Vt,Et]=gt.graph2tree(V,E)
gf.drawgraph(E)
gf.drawgraph(Et)
print("V",V)
print("E",E)
print("Vt",Vt)
print("Et",Et)
print(V==Vt)